<?php
	namespace Home\Model;
	class SelectCarModel{
		public function getIdleCar(){
			$ordersObj= D('Orders');
			$buysCarList=$ordersObj->getBuysCar();
			$count=count($buysCarList);
			$buysCarId=array();
			for($i=0;$i<$count;$i++){
				$buysCarId=$buysCarList[i]['car_id'];
			}
			$carObj= D('car');
			$idleCarList=$carObj->getIdleCar($buysCarId);
			return $idleCarList;
			
		}
	}